package com.zq.utils;

import java.util.List;

/**
 *鍒嗛〉宸ュ叿绫�
 * @param <T> 闇�瑕佹墽琛屽垎椤垫搷浣滅殑瀹炰綋绫诲嵆琛ㄦ槑
 */
public class FenyeUtil<T> {
	private T t;//澶氭潯浠跺垎椤垫煡璇㈢殑鏉′欢 灏佽鎴愮殑瀵硅薄
	private Integer page=1;//褰撳墠椤电爜 榛樿
	private Integer limit=10;//姣忛〉鏄剧ず鐨勬潯鏁伴粯璁�
	private Integer count;//鎬绘潯鏁�
	private List<T> data ;//鏌ヨ鐨勮繑鍥炵殑鏁版嵁闆嗗悎
	private String msg="";//杩斿洖鐨勬秷鎭�
	private Integer code=0;//杩斿洖鐨勭姸鎬佺爜
	
	public String getMsg() {
		return msg;
	}
	public void setMsg(String msg) {
		this.msg = msg;
	}
	public Integer getCode() {
		return code;
	}
	public void setCode(Integer code) {
		this.code = code;
	}
	
	public Integer getPage() {
		return (page-1)*limit;
	}
	public void setPage(Integer page) {
		this.page = page;
	}
	
	public Integer getLimit() {
		return limit;
	}
	public void setLimit(Integer limit) {
		this.limit = limit;
	}
	public Integer getCount() {
		return count;
	}
	public void setCount(Integer count) {
		this.count = count;
	}
	
	public T getT() {
		return t;
	}
	public List<T> getData() {
		return data;
	}
	public void setData(List<T> data) {
		this.data = data;
	}
	public void setT(T t) {
		this.t = t;
	}
	@Override
	public String toString() {
		return "FenyeUtile [page=" + page + ", limit=" + limit + ", count=" + count + ", data=" + data + ", msg=" + msg
				+ ", code=" + code + ", t=" + t + "]";
	}
}
